package com.backend.service.rbac;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pojo.dto.AddRoleToUserDTO;
import com.pojo.entity.UserRole;

import java.util.List;

public interface UserRoleService extends IService<UserRole> {
    Integer deleteRolesByUserId(Long userId);
    List<String> getRolesByUserId(Long userId);

    Integer addRolesToUser(AddRoleToUserDTO addRoleToUserDTO);

    Integer updateRolesToUser(AddRoleToUserDTO addRoleToUserDTO);
}
